package org.csu.mypetstore.persistence;
import org.csu.mypetstore.domain.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {

    //删除
    void deleteOrderByOrderId(int id);
    //发货
    void updateOrderStatus(Order order);
    //修改
    void updateOrder(Order order);
    //得到所有
    List<Order> getOrderList();

    List<Order> getOrdersByUsername(String username);

    Order getOrder(int orderId);

    void insertOrder(Order order);

    void insertOrderStatus(Order order);

    void deleteOrderStatusByOrderId(int orderId);

    void deleteLineItem(int order);

}